﻿using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CBS.Model.UIModel
{
    public class StudentSelectModel : IEqualityComparer<StudentSelectModel>
    {
        public int StudentId { get; set; }
        public string StudentName { get; set; }
        public bool Equals(StudentSelectModel x, StudentSelectModel y)
        {
            return x.StudentId.Equals(y.StudentId);
        }

        public int GetHashCode([DisallowNull] StudentSelectModel obj)
        {
            return $"{obj.GetType()},{obj.StudentId}".GetHashCode();
        }
    }

}
